<style type="text/css">
td{
	border:1px solid #CCC;
	padding:2px 6px;
}
tr.title td{
	font-weight:bold;
	color:#060;
}
</style>
<h3>Danh sách thành viên</h3>
<div style="height:30px"></div>
<?php	
require("clsusers.php");
$user = new users();
$listuser = $user->listusers();
?>
<table width="700" border="0">
  <tr class="title">
    <td width="41">Stt</td>
    <td width="135">Username</td>
    <td width="125">Full name</td>
    <td width="119">Phone</td>
    <td width="97">Gender</td>
    <td width="77">Level</td>
    <td width="39">Edit</td>
    <td width="33">Del</td>
  </tr>
  <?php $stt=1; foreach($listuser as $items){ ?>
  <tr>
  	<td><?php echo $stt; ?></td>
  	<td><?php echo $items['user_name']; ?></td>
  	<td><?php echo $items['user_fullname']; ?></td>
  	<td><?php echo $items['user_phone']; ?></td>
  	<td><?php if($items['user_gender'] == 1){echo "Nam";}else{ echo "Nữ";} ; ?></td>
  	<td>
	<?php 
		if($items['user_level'] == 1){ 
			echo "<font color='#F00'>Admin</font>";
		}else{ 
			echo "Member";
		}
	?>
	</td>
  	<td><a href="<?php echo BASEURL."admin/index.php?page=user&act=edit&uid=".$items['user_id']; ?>">Sửa</a></td>
  	<td><a href="<?php echo BASEURL."admin/index.php?page=user&act=del&uid=".$items['user_id']; ?>" onClick="return askconfirm()">Xóa</a></td>
  </tr>
  <?php $stt++; } ?>
</table>